//
//  ZPZNetRequest+appLogin.m
//  项目二网络请求
//
//  Created by 张峥 on 16/7/23.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "ZPZNetRequest+appLogin.h"

@implementation ZPZNetRequest (appLogin)

+ (void)getappLoginUsername:(NSString *)username Password:(NSString *)password comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (![LStringUtils isTextEmpty:username] && password!= nil) {
        [numDic setObject:username forKey:@"username"];
        [numDic setObject:[LStringUtils md5HexDigestWithString:password] forKey:@"password"];
    }
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appIndex/appLogin" requestType:ZLApRequestPost Comletion:comletion];

}

@end
